package com.cleaningcloud.cld.mapper.mini;

import com.cleaningcloud.cld.domain.mini.MySupplies;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface MiniMaterialMapper {

    /**
     * 我的物资查询
     *
     * @param staffId
     * @return
     */
    List<MySupplies> selectMySupplies(@Param("projectPostId") Long projectPostId);


    /**
     * 按日查询消耗列表
     *
     * @param map
     * @return
     */
    List<Map<String, Object>> selectDaySuppliesConsumeList(Map<String, Object> map);

    /**
     * 月消耗累计
     *
     * @param map
     * @return
     */
    BigDecimal getSuppliesConsumeMonthlyTotal(Map<String, Object> map);

    /**
     * 报损列表 我的报损 员工报损
     *
     * @param map
     * @return
     */
    List<Map<String, Object>> selectSuppliesConsumeList(Map<String, Object> map);


    /**
     * 月消耗累计
     *
     * @param map
     * @return
     */
    List<Map<String, Object>> getEmployeeInventoryByCommodityId(Map<String, Object> map);
}
